// Fill out your copyright notice in the Description page of Project Settings.

#include "SpaceFortress.h"
#include "District.h"

void ADistrict::initialize(int32 setId)
{
	id = setId;
	level = 1;
	infrastructureSlots = level * 10;
}

bool ADistrict::placeBuilding(const int32 reqSlots)
{
	if (reqSlots > infrastructureSlots)
		return false;

	infrastructureSlots -= reqSlots;
	return true;
}